package org.budo.activiti.form.type;

import org.activiti.engine.form.AbstractFormType;

/**
 * 一个特殊的表单类型，界面上展示位统一拒绝两个按钮
 * 
 * @author lmw
 */
public class AllowDenyFormType extends AbstractFormType {
    private static final long serialVersionUID = 8302772495554347285L;

    public static final String $_ALLOW = "${allow}";

    public static final String $_DENY = "${deny}";

    public static final String NAME = "allow_deny";

    @Override
    public String getName() {
        return NAME;
    }

    @Override
    public Object convertFormValueToModelValue(String propertyValue) {
        throw new RuntimeException();
    }

    @Override
    public String convertModelValueToFormValue(Object modelValue) {
        throw new RuntimeException();
    }
}